﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TestTasks.Cataloguer
{
    public class DictionaryDocument : IDocument
    {
        public DictionaryDocument() 
        {
            Core = new Dictionary<string, object>();
        }
        
        public Dictionary<string,object> Core { get; set; }
        
        public IEnumerable<string> Properties
        {
            get { return Core.Keys; }
        }

        public object Get(string property)
        {
            return Core[property];
        }

        public bool HasSet(string property)
        {
            return Core.ContainsKey(property);
        }
    }
}
